#ifndef _TYPES_H_
#define _TYPES_H_

typedef unsigned int uint32_t;
typedef unsigned short uint16_t;
typedef unsigned char uint8_t;

typedef signed int int32_t;
typedef signed char int8_t;
typedef signed short int16_t;

typedef uint8_t bool;

#ifndef TRUE
#define TRUE 1
#define FALSE 0
#define true TRUE
#define false FALSE
#endif

#define NULL ((void *)0)

#define OFFSET_OF(a, b_t)  (uint32_t)(&(((b_t *)NULL)->a))

#endif

